import com.newland.flow.view.BaseNodeView;

import flash.events.MouseEvent;

import mx.collections.ArrayCollection;
import mx.core.UIComponent;

private var target:BaseNodeView ;
[Bindable]
// new ArrayCollection([{selected:true,label:'a'},{selected:false,label:'b'}]);
private var ds:ArrayCollection = new ArrayCollection([{selected:false,label:'激活模板A'},{selected:false,label:'激活模板B'},{selected:true,label:'激活模板C'}]);


public function init(ui:UIComponent):void {
	if(ui != null ) {
		var node:BaseNodeView = BaseNodeView(ui);
		target = node;
		this.nodeName.text = node.nodeName;
	} else {
		target = null;
		this.nodeName.text = "";
	}
}
private function sure(event:MouseEvent):void {
	if(target != null) {
		target.nodeName = this.nodeName.text;
		target.lb.text = this.nodeName.text;
	}
}
private function cancel(event:MouseEvent):void {
	
}
private function netElementTypeSelect():void {
	
}

private function netElementModelSelect():void {
	
}